
package com.kinderas.events
{
	import flash.events.Event;
	/**
	 * Generic object event. Takes an object as a parameter and passes it to the listener
	 * @author Jørn Kinderås
	 * 
	 */	
	public class ObjectEvent extends Event
	{
		public var data:Object;
		
		/**
		 * Constructor 
		 * @param type Event type
		 * @param data Object of generic data
		 * 
		 */		
		public function ObjectEvent(type:String, data:Object){
			super(type);
			this.data = data;
		}
		
		override public function clone():Event
		{
			return new ObjectEvent(type,data);
		}
		
	}
}